package Demo;

import java.util.Iterator;

public class Demo01 {
     public static void main(String [] args) {
    	 int[] arr ={19, 28, 37, 46, 50};
    	 name(arr);
     }
     public static void name(int a[]) {
    	 int b = 0;
    	 int end = a.length-1;
    	 int temp;
 		for (; b < end; b++,end--) {
			temp = a[end];
			a[end] = a[b];
			a[b] = temp;
		}
 		for (int i = 0; i < a.length; i++) {
 			System.out.print(a[i]+" ");
		}
     }
     
}
